package com.cqhfan.api.config;

import com.cqhfan.api.clients.content.fallback.WorksClientFallbackFactory;
import com.cqhfan.api.clients.interaction.fallback.LikedRecordClientFallbackFactory;
import com.cqhfan.api.clients.user.fallback.FollowClientFallbackFactory;
import com.cqhfan.api.clients.user.fallback.UserClientFallbackFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author 眭传洪
 * @create 2025-07-26 2:35
 */
@Configuration
public class FallbackConfig {

    @Bean
    public UserClientFallbackFactory userClientFallbackFactory() {
        return new UserClientFallbackFactory();
    }

    @Bean
    public FollowClientFallbackFactory followClientFallbackFactory() {
        return new FollowClientFallbackFactory();
    }

    @Bean
    public LikedRecordClientFallbackFactory likedRecordClientFallbackFactory() {
        return new LikedRecordClientFallbackFactory();
    }

    @Bean
    public WorksClientFallbackFactory worksClientFallbackFactory() {
        return new WorksClientFallbackFactory();
    }

}
